package com.example.redstarcommerce.cn.dh.shopcart.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * @ClassName Shop
 * @Author AndyWu
 * @Date 2024-11-01 22:37
 * @Motto 学不死就往死里学
 * @Version 1.0
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("shopcart")
public class ShopCart {
 @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

 @TableField("uid")
    private String uid;

 @TableField("name")
    private String name;

 @TableField("type")
    private String type;

 @TableField("introduce")
    private String introduce;

 @TableField("price")
    private Float price;

 @TableField("timeend")
    private Timestamp timeend;

 @TableField("map")
    private String map;


    public ShopCart(String uid, String name, String type, String introduce, Float price, Timestamp timeend, String map) {
        this.uid = uid;
        this.name = name;
        this.type = type;
        this.introduce = introduce;
        this.price = price;
        this.timeend = timeend;
        this.map = map;
    }

    public ShopCart(String uid,String name, String type, String introduce, Float price) {
        this.uid = uid;
        this.name = name;
        this.type = type;
        this.introduce = introduce;
        this.price = price;

    }








}
